/*************************************************************************
	> File Name: main.cc
	> Author: Joker
	> Mail: mahongtao@foxmail.com 
	> Created Time: 2020-09-22 14:33:00
 ************************************************************************/

#include "Command.h"

#include <iostream>
using namespace std;

void test0(){
    cout << ">> test0()" << endl;
    Receiver * pReceiver = new Receiver();
    Command * pCommand = new ConcreateCommand(pReceiver);
    Invoker * pInvoker = new Invoker(pCommand);

    pInvoker->Invoke();
    
    delete pInvoker;
    cout << ">> ~test0()" << endl;
}

int main(int argc,char *argv[])
{
    test0();
    return 0;
}
